//
//  CoreUserTextField.m
//  CoreUser
//
//  Created by Demi on 20/04/2017.
//  Copyright © 2017 Azazie. All rights reserved.
//

#import "CoreUserTextField.h"

@implementation CoreUserTextField

#pragma mark - override styling methods

- (CGRect)caretRectForPosition:(UITextPosition *)position
{
    if (_hidesCaret)
    {
        return CGRectZero;
    }
    return [super caretRectForPosition:position];
}

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
    if (_disablesActionMenu)
    {
        return NO;
    }
    return [super canPerformAction:action withSender:sender];
}

@end
